package com.feizhoutuobang.shapeline.bo.impl;

import java.util.Date;

import com.feizhoutuobang.shapeline.bo.User;
import com.feizhoutuobang.shapeline.util.Calendar;

public class UserImpl implements User {

	private String id;
	private String email;
	private String deliverEmail;
	private String password;
	private String createTime = Calendar.INVALID_TIME;
	private String accessTime = Calendar.INVALID_TIME;
	private boolean active;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getDeliverEmail() {
		return deliverEmail;
	}

	public void setDeliverEmail(String deliverEmail) {
		this.deliverEmail = deliverEmail;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getCreateTime() {
		return Calendar.parse(createTime);
	}

	public void setCreateTime(Date createTime) {
		this.createTime = Calendar.format(createTime);
	}

	public Date getAccessTime() {
		return Calendar.parse(accessTime);
	}

	public void setAccessTime(Date accessTime) {
		this.accessTime = Calendar.format(accessTime);
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}	

	public String getCreateTime_() {
		return createTime;
	}

	public void setCreateTime_(String createTime) {
		this.createTime = createTime;
	}

	public String getAccessTime_() {
		return accessTime;
	}

	public void setAccessTime_(String accessTime) {
		this.accessTime = accessTime;
	}
}
